package ooday01Exercise;

public class Car {
    //成员变量：brand,color,price
    //构造方法：
    //方法：start(),run(),stop()
    String brand;
    String color;
    double price;

    Car(){

    }
    Car(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
    }

    void start(){
        System.out.println(brand+"的"+color+"的"+price+"块钱的车启动了....");
    }
    void run(){
        System.out.println(brand+"的"+color+"的"+price+"块钱的车在跑.....");
    }
    void stop(){
        System.out.println(brand+"的"+color+"的"+price+"块钱的车停止了....");
    }
}
